/*
 * @Author: Jie
 * @LastEditors: Jie
 * @Date: 2021-05-24 09:15:10
 * @LastEditTime: 2021-05-25 09:08:09
 * @Description:
 * @Email: 18521721605@163.com
 */

export default {
  data() {
    return {
      msg: "mixin",
    };
  },
  methods: {
    /**
     *
     * @param {*} url // 地址
     * @param {*} data // 数据
     * @param {*} type // 传值类型  1.query | 2. params
     */
    toPush(name, data, type) {
      let datas = {};
      type == 1
        ? (datas = { name, query: data })
        : (datas = { name, params: data });
      this.$router.push(datas);
    },
  },
};
